#include "plugindemo.h"
#include "form.h"

PluginDemo::PluginDemo()
{
    mGenWidget = Q_NULLPTR;
}

PluginDemo::~PluginDemo()
{
    if(mGenWidget){
        mGenWidget->deleteLater();
    }
}

QWidget *PluginDemo::getWidget()
{
    if(!mGenWidget){
        mGenWidget = new Form;
    }
    return mGenWidget;
}
